package org.cloud.ext.controller;

import com.alibaba.fastjson.JSONObject;
import org.cloud.ext.service.MqBzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 推送 控制器
 * @author xukk
 * @date 2020/3/10
 */
@RestController
@RequestMapping("message")
public class MessageController {
    private MqBzService mqBzService;

    @PostMapping
    public Object post(@RequestBody JSONObject jsonObject){
        return mqBzService.resolve(jsonObject);
    }
    @Autowired
    public void setMqBzService(MqBzService mqBzService) {
        this.mqBzService = mqBzService;
    }



}
